package org.metasketch.diagram.javafx.graphics;

import org.metasketch.editor.links.LineEnd;
import org.metasketch.editor.links.LinkEndType;

import javafx.scene.shape.Circle;
import javafx.scene.shape.Polygon;
import javafx.scene.shape.Polyline;
import javafx.scene.shape.Rectangle;

public class ArrowEndType extends LineEnd {

	Polyline polygon1 = new Polyline(new double[] { 0, 20, 5, 0, 10, 20 });

	public ArrowEndType(LinkEndType endType) {

		// if (endType == LinkEndType.ARROW) {
		polygon1.setStyle("-fx-stroke: black;  -fx-stroke-width: 2; ");
		// } else if (endType == LinkEndType.FILLEDARROW)
		// polygon1.setStyle("-fx-stroke: black;  -fx-stroke-width: 2; -fx-fill: black; ");

		getChildren().add(polygon1);

	}

	// @Override
	// public void setNewPosition(int x, int y, int sectionX, int sectionY) {
	// setTranslateX(x);
	// setTranslateY(y);
	//
	// }

}
